﻿using Terraria.GameContent.Creative;
using Terraria.ID;
using Terraria;
using Terraria.ModLoader;

namespace EAS.Content.Items
{
    public class DiamondSwordShield : ModItem
    {
        public override void SetStaticDefaults()
        {
            CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
        }
        public override void SetDefaults()
        {
            Item.width = 78;
            Item.height = 78;
            Item.rare = ItemRarityID.Expert;
            Item.accessory = true;
            Item.value = Item.sellPrice(0, 9, 45, 52);
            Item.expert = true;
        }
        public override void AddRecipes()
        {
            Recipe modRecipe = Recipe.Create(Type, 1);
            modRecipe.AddIngredient(ItemID.WormScarf, 1);
            modRecipe.AddIngredient(ItemID.LargeDiamond, 1);
            modRecipe.AddTile(TileID.TinkerersWorkbench);
            modRecipe.Register();
        }
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            player.statDefense += 5;
            player.endurance += 0.16f;
        }
    }
}
